using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace SecurityModule.Web.App_Code
{
    public class BasePage : System.Web.UI.Page
    {
        public string CurrentUserAccount
        {
            get
            {
                return Page.User.Identity.Name;
            }
        }

        public void Alert(string msg)
        {
            Page.ClientScript.RegisterStartupScript(this.GetType(), "alert", "<script>alert('" + msg + "');</script>");
        }

        public void Script(string msg)
        {
            Response.Write("<script>" + msg + "</script>");
        }

        public void Redirect(string url)
        {
            Response.Redirect(url);
        }
    }
}
